package com.netease.b.a;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import com.netease.a.a.e;
import com.netease.framework.b.a;
import com.netease.pris.a.r;
import java.io.File;
import java.io.FileInputStream;
import java.util.Iterator;
import java.util.Vector;

class p extends com.netease.framework.b.b
{
  boolean h;
  boolean i;

  public p(g paramg, a parama, Object paramObject, int paramInt1, int paramInt2)
  {
    super(parama, paramObject, paramInt1, paramInt2);
    if ((parama instanceof g))
    {
      this.h = ((g)parama).l;
      this.i = ((g)parama).k;
    }
  }

  public p(g paramg, Vector paramVector, Object paramObject, int paramInt1, int paramInt2)
  {
    super(paramVector, paramObject, paramInt1, paramInt2);
    Iterator localIterator = paramVector.iterator();
    while (localIterator.hasNext())
    {
      a locala = (a)localIterator.next();
      if ((locala == null) || (!(locala instanceof g)))
        continue;
      g localg = (g)locala;
      boolean bool1;
      if (this.h)
      {
        bool1 = this.h;
        label76: this.h = bool1;
        if (!this.i)
          break label114;
      }
      label114: for (boolean bool2 = this.i; ; bool2 = localg.k)
      {
        this.i = bool2;
        break;
        bool1 = localg.l;
        break label76;
      }
    }
  }

  public void f()
  {
    if ((!b()) || (this.j.n() == 1001));
    while (true)
    {
      return;
      b localb = new b();
      localb.a = this.j.e;
      localb.d = this.j.o;
      String str1 = r.a(this.j.e);
      String str2 = e.a(str1, false);
      if (str2 == null)
      {
        a(1, 0);
        continue;
      }
      if (!this.j.j)
      {
        com.netease.a.a.g localg = e.d(str1);
        if ((localg != null) && (!str2.equals(localg.e())))
        {
          e.a(new File(str2));
          str2 = localg.e();
        }
      }
      localb.b = str2;
      FileInputStream localFileInputStream2;
      if (this.h)
        if ((this.j.j) && (this.i))
          try
          {
            FileInputStream localFileInputStream1 = new FileInputStream(new File(str2));
            localFileInputStream2 = localFileInputStream1;
            if (localFileInputStream2 == null)
              a(1, 0);
          }
          catch (Exception localException)
          {
            while (true)
            {
              localException.printStackTrace();
              localFileInputStream2 = null;
            }
          }
      try
      {
        Bitmap localBitmap = BitmapFactory.decodeStream(localFileInputStream2);
        localb.c = localBitmap;
        if (localb.c != null)
          g.a(this.j, localb.c, localb);
        a(localb);
      }
      catch (OutOfMemoryError localOutOfMemoryError)
      {
        localOutOfMemoryError.printStackTrace();
        if (0 != 0)
          null.recycle();
        System.gc();
        a(1, 0);
      }
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.b.a.p
 * JD-Core Version:    0.6.0
 */